﻿using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Luka;

/// <summary>
/// 基本输入参数
/// </summary>
public class PagedInput
{
    /// <summary>
    /// 页码
    /// </summary>
    [Required(ErrorMessage = "页码不能为空"), DefaultValue(1), SugarColumn(IsIgnore = true)]
    public int PageIndex { get; set; }

    /// <summary>
    /// 行数
    /// </summary>
    [Required(ErrorMessage = "行数不能为空"), DefaultValue(10), SugarColumn(IsIgnore = true)]
    public int PageSize { get; set; }
}